from rest_framework.routers import SimpleRouter
 
# 解决前端请求链接尾部没有 / 的问题 put/delete
class Router(SimpleRouter):
    def __init__(self, trailing_slash='/?'):
        super(Router, self).__init__()
        self.trailing_slash = trailing_slash